package com.shy.configs.common.exceptions;

import com.shy.configs.common.enums.RCode;
import org.springframework.stereotype.Component;

@Component
public class DftException extends RuntimeException {
    private RCode rCode;

    public DftException() {
        super();
    }

    public DftException(String message) {
        super(message);
    }

    public DftException(RCode rCode) {
        super(rCode.getMessage());
        this.rCode = rCode;
    }

    public RCode getRCode() {
        return rCode;
    }
}
